/**
 * 
 */
package com.xb.cloud.common.util;


import java.util.Map;

import com.xb.cloud.common.constant.DbConstants;

/**
 * mongo里面product数据相关的key生成规则
 * @author kexue
 *
 */
public class KeyUtils {

	// 生成产品店铺主键 1_1
	public static String generateProductShopKey(Long productId, Long shopId) {
		return productId + DbConstants.UNDERLINE + shopId;
	}

	// 判断该组合是否存在
	public static boolean checkExistSeriesComb(String key, Map<String, Long> seriesAttributeCombSkuIdMap) {
		return seriesAttributeCombSkuIdMap.containsKey(key);
	}
	

}
